<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Stores.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Stores.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '小程序',
                    name: 'Stores',
                    url: "/Stores/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"logo":"","name":"","industry":""},
                editFormOptions: [[{"title":"logo","field":"logo","type":"img"}],
                              [{"title":"小程序名称","field":"name","type":"text"}],
                              [{"dataKey":"mallIndustry","data":[],"title":"行业","field":"industry","type":"select"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'id',title:'主键',type:'string',width:220,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'pages',title:'主页',type:'string',width:90,align:'left',sortable:true},
                       {field:'name',title:'小程序名称',type:'string',width:220,align:'left'},
                       {field:'type',title:'类型',type:'string',width:220,align:'left'},
                       {field:'cover',title:'封面图',type:'string',width:220,align:'left'},
                       {field:'config',title:'页面配置',type:'string',width:90,align:'left'},
                       {field:'logo',title:'logo',type:'string',width:220,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:180,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'modifyID',title:'修改人ID',type:'int',width:90,hidden:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:90,hidden:true,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:180,align:'left'},
                       {field:'supplierName',title:'分销商名称',type:'string',width:220,align:'left'},
                       {field:'supplierCode',title:'分销商编码',type:'string',width:220,align:'left'},
                       {field:'industry',title:'行业',type:'string',bind:{ key:'mallIndustry',data:[]},width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
